package com.bwie.controller;
import com.bwie.Dto.ProdInfoDto;
import com.bwie.domain.Order;
import com.bwie.service.Impl.OrderServiceImpl;
import com.bwie.service.OrderService;
import com.bwie.utils.R;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
* 订单表(tb_order)表控制层
*
* @author xxxxx
*/
@RestController
@RequestMapping("/order")
public class OrderController {
/**
* 服务对象
*/
    @Autowired
    private OrderService orderService;
    /**
     * @description: 保存订单信息
     * @author: Zero
     * @date: 2025/10/29 20:06
     * @param: [prodInfoDtoList]
     * @return: com.bwie.utils.R
     **/
    @ApiOperation("保存订单信息")
    @PostMapping("saveOrderInfo")
    public R saveOrderInfo(@RequestBody List<ProdInfoDto> prodInfoDtoList){
        return orderService.saveOrderInfo(prodInfoDtoList);
    }

}
